Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
def _VM_metrics_get(self, ref):
return XendVMMetrics.get_by_uuid(ref)
+ def VM_metrics_get_all(self, _):
+ return xen_api_success(XendVMMetrics.get_all())
+
def VM_metrics_get_record(self, _, ref):
return xen_api_success(self._VM_metrics_get(ref).get_record())
return uuid in instances
is_valid_vm_metrics = classmethod(is_valid_vm_metrics)
+
+ def get_all(_):
+ return instances.keys()
+
+ get_all = classmethod(get_all)
def __init__(self, uuid, xend_domain_instance):
self.uuid = uuid